

export default {
    // 独立的命名空间
    namespaced: true,
    state: {
        isLogin: false,
        token: sessionStorage.getItem("token"),
        cartlist: [

        ]

    },
    getters: {
    },
    mutations: {
        addcart (state, payload) {
            state.cartlist.push(payload)
            console.log(state.cartlist);
        }

    },
    actions: {



    },
}